// abckids.cpp : main project file.

#include "stdafx.h"
#include "Form1.h"
#include "BaseModel.h"
#include "BaseController.h"
#include "DatabaseModel.h"

using namespace abckids;

[STAThreadAttribute]
int main(array<System::String ^> ^args)
{
	// Application Path
	System::String^ ApplicationPath = System::Windows::Forms::Application::StartupPath;

	// Database File
	System::String^ DatabaseFile = L"\\abc-kids-db.sqlite3";

	// Database Path
	System::String^ Datapath = System::String::Concat(ApplicationPath,DatabaseFile);

	// Database Model
	DatabaseModel^ Database = gcnew DatabaseModel(Datapath);

	// Base Objects
	BaseModel^ Model = gcnew BaseModel();
	BaseController^ Controller = gcnew BaseController();

	// Enabling Windows XP visual effects before any controls are created
	Application::EnableVisualStyles();
	Application::SetCompatibleTextRenderingDefault(false); 

	// Create the main window and run it
	Application::Run(gcnew Form1());
	return 0;
}
